'Declaration
<CanBeNullAttribute()> Protected Overloads Function Synchronize(Of TResult As Class)( _ ByVal function As Func(Of TResult) _ ) As TResult
'Usage
Dim instance As NotifyingWidget Dim function As Func(Of TResult) Dim value As TResult value = instance.Synchronize(Of TResult)(function)
[CanBeNull()] protected TResult Synchronize<TResult>( Func<TResult> function ) where TResult: class
[CanBeNull()] protected: TResult^ Synchronizegeneric<typename TResult> ( Func<TResult^>^ function ) where TResult: ref class
Parameters
- function
- Function to be invoked.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TResult
- Type of the function result.
Return Value
This method can return null
(Nothing
in Visual Basic).